var $ = require('../../common/helper.js');
Page({
	data: {

	},
	onLoad: function (options) {
		$.overload(false);
	},
	postForm: function (e) {
		var data = e.detail.value;
		$.post('api.php?app=member&act=feedback', data, function (json) {
			if (json.error != 0) {
				$.overloadError(json.msg);
				return;
			}
			$.overloadSuccess('提交成功');
			wx.navigateBack();
		})
	},
	onShareAppMessage: function (res) {
		return {
			title: $.config.shareTitle,
			imageUrl: $.config.shareImageUrl,
			path: this.route
		}
	}
})